@use "styles/Radius.module.scss";
@use "styles/ScreenSizes.module.scss";
@use "styles/Spacings.module.scss";
@use "styles/Typography.module.scss";

.tabs_container {
  display: flex;
  justify-content: space-between;

  .tab_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-bottom: 1px solid var(--border-2);
    padding-block: Spacings.$spacing03;
    cursor: pointer;
    box-sizing: border-box;
    gap: Spacings.$spacing03;

    &.selected {
      border-bottom-color: var(--primary-0);
      color: var(--primary-0);
      background-color: var(--background-2);
    }

    &:hover {
      color: var(--primary-0);
    }

    &.disabled {
      pointer-events: none;
      color: var(--text-1);
    }

    @media (max-width: ScreenSizes.$small) {
      .icon {
        display: none;
      }

      .label_wrapper {
        .label {
          font-size: Typography.$very-tiny;
        }
      }
    }

    .label_wrapper {
      display: flex;
      position: relative;
      gap: Spacings.$spacing02;
      font-size: Typography.$small;

      .label_badge {
        border-radius: Radius.$circle;
        width: 16px;
        height: 16px;
        color: var(--white-0);
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--primary-0);
        font-size: Typography.$very-tiny;
      }
    }
  }
}
